<template>
    <div class="courses-nav">
        <el-menu :default-active="activeIndex" class="el-menu-demo"  mode="horizontal" :router="true">
            <el-menu-item index="/MyCourses/CourseDetail">详情</el-menu-item>
            <el-menu-item index="/marking">批阅</el-menu-item>
            <el-menu-item index="/MyCourses/Interflow/AnswerList">交流</el-menu-item>
            <el-menu-item index="/MyCourses/Examination/ExaminationList">考试</el-menu-item>
            <el-menu-item index="/MyCourses/Statistics/TStatistics">统计</el-menu-item>
            <el-menu-item index="6">管理</el-menu-item>
        </el-menu>
    </div>
</template>

<script>
    export default {
        data () {
            return {
                activeIndex: '/MyCourses/CourseDetail'
            }
        },
        methods: {
            handleSelect(key, keyPath) {
                console.log(key, keyPath)
            }
        }
    }
</script>
